package com.exam.demo.mapper;

import com.exam.demo.domain.Table2;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
* @author 46287
* @description 针对表【table2】的数据库操作Mapper
* @createDate 2023-11-09 10:25:36
* @Entity com.exam.demo.domain.Table2
*/
public interface Table2Mapper extends BaseMapper<Table2> {

    @Select("select * from table2 ")
    public List<Map<String,Object>> getList();

    @Insert("insert into str values (#{str})")
    public int insertString(String str);

}




